# encoding: utf-8


DEBUG = True
SECRET_KEY = "wangzan18"

DB_CONFIG = {
    'host': 'wangzan-db.mysql.polardb.singapore.rds.aliyuncs.com',
    'port': 3306,
    'user': 'wangzan18',
    'password': '123#qweASD',
    'db': 'myfavorite',
    'charset': "utf8"
}

# 设置连接数据库的URL
SQLALCHEMY_DATABASE_URI = "mysql+pymysql://wangzan19:123#qweASD@wangzan-db.mysql.polardb.singapore.rds.aliyuncs.com:3306/myfavorite?charset=utf8"

# 设置每次请求结束后会自动提交数据库的改动
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
SQLALCHEMY_TRACK_MODIFICATIONS = True

# 查询时显示原始SQL语句
SQLALCHEMY_ECHO = True